#include "BeanieCore.h"

void BeanieCore::acquire()
{
	if(m_exit) return;
	m_input.acquire();
}

bool BeanieCore::keyInput(int a_key)
{
	if(m_exit) return false;
	if(m_input.keyInput(a_key)) return true;
	else return false;
}

bool BeanieCore::keyPress(int a_key)
{
	if(m_exit) return false;
	if(m_input.keyPress(a_key)) return true;
	else return false;
}

bool BeanieCore::anyKey()
{
	if(m_exit) return false;

	if(m_input.anyPress()) return true;
	else return false;
}

bool BeanieCore::mouseInput(int a_button)
{
	if(m_exit) return false;
	if(m_input.mouseInput(a_button)) return true;
	else return false;
}

bool BeanieCore::mousePress(int a_button)
{
	if(m_exit) return false;
	if(m_input.mousePress(a_button)) return true;
	else return false;
}

void BeanieCore::mouseDelta(
	long* a_x,
	long* a_y,
	long* a_z)
{
	if(m_exit) return;
	m_input.mouseDelta(a_x,a_y,a_z);
}

void BeanieCore::mousePosition(
	int* a_x,
	int* a_y)
{
	if(m_exit) return;
	m_input.mousePosition(a_x,a_y);
}